﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using System.ServiceModel.Activation;
using System.ServiceModel;

namespace Skynet.ServiceImplementation
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class SkySchoolTransactionService : ServiceContracts.ISkySchoolTransactionService
    {
        [Dependency]
        public BusinessLogic.BusinessComponents.IBCSchool BCSchool { get; set; }

        [OperationBehavior(TransactionScopeRequired = true)]
        public void MaintenanceStudent(BusinessEntities.Student Student)
        {
            this.BCSchool.AddStudent(Student);            
        }
    }
}
